<template>
  <div>
    <sale-header></sale-header>
  </div>
</template>
<script>
import SaleHeader from "@/pages/sale/components/Header"
export default {
   components: { 
     SaleHeader,
  },
  beforeRouteEnter(to, from, next) {
    var UserToken=localStorage.getItem("UserToken");
    if (UserToken) {
       next();
    } else {
       next({ path: '/login', query: { historypath: "/sale" }});
    }
  }
};
</script>